/*
 * Copyright (c) 2024. Shanghai HEADING information Engineering Co., Ltd. All rights reserved.
 */
package com.lovely602.design.study.basic;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * @author lizhixing
 */
public class BufferReaderTest {

  public static void main(String[] args) {

    System.out.println("请输入一列文字");
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    try {
      String text = reader.readLine();
      System.out.println("你输入了：" + text);
    } catch (Exception e) {
      e.printStackTrace();
    }

  }
}
